package com.tanchengjin.admin.modules.blog.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@Component
@ConfigurationProperties(prefix = "app.api")
public class ApiConfig implements Serializable {
    private static final long serialVersionUID = 390301109341315986L;
    /**
     * API路由前缀
     */
    private String prefix;
    /**
     * JWT head头键
     */
    private String jwtHeadName;
    /**
     * JWT 类型
     */
    private String jwtType;
    /**
     * JWT密钥
     */
    private String jwtSecret;
    /**
     * JWT access_token 过期时间/秒
     */
    private Long jwtAccessTokenExpireTime;
    /**
     * JWT refresh_token 过期时间/秒
     */
    private Long jwtRefreshTokenExpireTime;
}
